#include"EpollServer.hpp"
#include<iostream>
#include<memory>

int main(int argc,char* argv[])
{
    if(argc!=2)
    {
        std::cout<<"Usage: "<<"proc "<<" port"<<std::endl;
    }
    int port=std::stoi(argv[1]);
    auto usr=std::make_unique<EpollServer>(port);
    usr->InitServer();
    usr->Loop();
    return 0;
}